#include "CvGameCoreDLL.h"
#include "CvRandom.h"
# include <boost/python/overloads.hpp>
using namespace boost::python;

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(CvRandom_get_overloads, CvRandom::get, 2, 2)
// Start GoodRandom added by torin 2007 Feb 5
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(CvRandom_getInt_overloads, CvRandom::getInt, 2, 2)
// End GoodRandom

//
// published python interface for CvRandom
//
void CyRandomPythonInterface()
{
	OutputDebugString("Python Extension Module - CyRandomPythonInterface\n");

	python::class_<CvRandom>("CyRandom")
		.def("get", &CvRandom::get, CvRandom_get_overloads( args("usNum", "pszLog"), "returns a random short"))
// Start GoodRandom added by torin 2007 Feb 5
		.def("getInt", &CvRandom::getInt, CvRandom_getInt_overloads( args("uiNum", "pszLog"), "returns a random int"))
// End GoodRandom
		.def("init", &CvRandom::init, "void (unsigned long int ulSeed)")
		;
}